<?php defined('SYSPATH') or die('No direct script access.');

class Controller_Sitemap extends Controller_Common {

	public $template='layout/index';

	public function action_index() {
		$this->buildCarcas();
		$this->template->title = 'Карта сайта - '.$this->template->title;

		$this->template->content = View::factory('pages/sitemap', array(
			'breadcrumbs' => View::factory('pieces/breadcrumbs', array(
				'breadcrumbs' => array(
					array('active' => 0, 'title' => 'Главная', 'link' => '/'),
					array('active' => 1, 'title' => 'Карта сайта', 'link' => '/sitemap')
				)
			)),
			'left_menu' => Model::factory('Menu')->get_by_location(1),
			'right_banners' => Model::factory('Banners')->get_right(),
			'bot_banner' => Model::factory('Banners')->get_bot(),
			'partners' => Model::factory('Partners')->get_all(),
			'sitemap' => Model::factory('Functions')->get_sitemap()
		));
	}
}